<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>插值</title>
</head>
<body>
<div id="app">
    {{message}}  <!--表达式-->
    {{1+1}}
    {{1>2?2:1}}
    {{message.split('')[0]}}
    {{message.split('').reverse().join('')}}
    <div v-html="message"></div> <!--innerHTML--> <!--v-xxxx-->
    <div v-text="message"></div> <!--innerText-->
    <input v-model="message"/>

</div>
</body>
<script src="../../../lib/vue.js"></script>
<script>

    new Vue({
        el: '#app',
        data: {
            message: 'hello'
        }
    })

</script>

</html>